import request from '@/utils/request';

export function xwExport(params) {
  return request({
    method: "get",
    url: "/system/cqScore/xwExport",
    params
  });
}


export function listOwnCollegeAudit(params = {}) {
  return request({
    method: 'GET',
    url: "/system/cqScore/listOwnCollegeAudit",
    params
  });
}

export function listOwnCollegeStu(params = {}) {
  return request({
    method: 'GET',
    url: "/system/cqScore/listOwnCollegeStu",
    params
  });
}

export function listOwnCollegeScore(params = {}) {
  return request({
    method: 'GET',
    url: "/system/cqScore/listOwnCollegeScore",
    params
  });
}

export function listOwnMajor() {
  return request({
    method: 'GET',
    url: "/system/cqScore/listOwnMajor"
  })
}

export function listOwnClass(id) {
  return request({
    method: 'GET',
    url: "/system/cqScore/listOwnClass/" + id
  })
}


export function rankDis(params) {
  return request({
    method: "get",
    url: "/system/cqScore/rankDis",
    params
  });
}

export function countScoreDetailDis(stuYearId) {
  return request({
    method: "get",
    url: "/system/cqScore/countScoreDetailDis/" + stuYearId
  });
}


export function countScoreDis(stuYearId) {
  return request({
    method: "get",
    url: "/system/cqScore/countScoreDis/" + stuYearId
  });
}


export function syncCqScore(id) {
  return request({
    method: "get",
    url: "/test/for/get/" + id
  });
}

export function doExport(params = {}) {
  return request({
    url: "/system/cqScore/exportScore",
    method: "get",
    params
  });
}

export function listCphScore(data = {}) {
  return request({
    url: "/system/cqScore/listCphScore",
    method: "get",
    params: data
  });
}

export function listOwnFive(query = {}) {
  return request({
    url: "/system/cqScore/listOwnFive",
    method: "get",
    params: query
  });
}

export function listStuFive(stuNo, params) {
  return request({
    url: "/system/cqScore/listStuFive/" + stuNo,
    method: "get",
    params
  });
}

export function getOwn() {
  return request({
    method: "get",
    url: "/system/cqScore/getOwn"
  })
}


export function listOwnRecord(query) {
  return request({
    method: "get",
    url: "/system/record/listOwnRecord",
    params: query
  })
}

//生成
export function initCQ(query) {
  return request({
    url: '/system/cqScore/generate?id=' + query,
    method: 'get',
  });
}

// 查询学生综合素质评分表列表
export function listCqScore(query) {
  return request({
    url: '/system/cqScore/list',
    method: 'get',
    params: query
  })
}

// 查询学生综合素质评分表详细
export function getCqScore(id) {
  return request({
    url: '/system/cqScore/' + id,
    method: 'get'
  })
}

// 新增学生综合素质评分表
export function addCqScore(data) {
  return request({
    url: '/system/cqScore',
    method: 'post',
    data: data
  })
}

// 修改学生综合素质评分表
export function updateCqScore(data) {
  return request({
    url: '/system/cqScore/update',
    method: 'post',
    data: data
  })
}

// 删除学生综合素质评分表
export function delCqScore(id) {
  return request({
    url: '/system/cqScore/delete/' + id,
    method: 'post'
  })
}
